<?php
session_start();
require_once("../firelynx.php");

$page = fily_XMLConverter::convertFile("xml.xml");
$table = $page->getControlBySid('table');


$_SESSION["data"] = array (
   array ("value 1", "value 2", "value 3"),
   array ("value 1", "value 2", "value 3"),
   array ("value 1", "value 2", "value 3")
);

foreach ($_SESSION["data"] as  $rowData) {
        $row = fily_XMLConverter::convertFile("normalRow.xml", $table);
        // bind values
        $row->getControlBySid('column1')->setText($rowData[0]);
        $row->getControlBySid('column2')->setText($rowData[1]);
        $row->getControlBySid('column3')->setText($rowData[2]);
}

echo $page;

?>
